package com.ruoyi.part.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.part.mapper.AcupointImagePartMapper;
import com.ruoyi.part.domain.AcupointImagePart;
import com.ruoyi.part.service.IAcupointImagePartService;

/**
 * 穴位图片-身体部位关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-10
 */
@Service
public class AcupointImagePartServiceImpl implements IAcupointImagePartService 
{
    @Autowired
    private AcupointImagePartMapper acupointImagePartMapper;

    /**
     * 查询穴位图片-身体部位关联
     * 
     * @param id 穴位图片-身体部位关联主键
     * @return 穴位图片-身体部位关联
     */
    @Override
    public AcupointImagePart selectAcupointImagePartById(Long id)
    {
        return acupointImagePartMapper.selectAcupointImagePartById(id);
    }

    /**
     * 查询穴位图片-身体部位关联列表
     * 
     * @param acupointImagePart 穴位图片-身体部位关联
     * @return 穴位图片-身体部位关联
     */
    @Override
    public List<AcupointImagePart> selectAcupointImagePartList(AcupointImagePart acupointImagePart)
    {
        return acupointImagePartMapper.selectAcupointImagePartList(acupointImagePart);
    }

    /**
     * 新增穴位图片-身体部位关联
     * 
     * @param acupointImagePart 穴位图片-身体部位关联
     * @return 结果
     */
    @Override
    public int insertAcupointImagePart(AcupointImagePart acupointImagePart)
    {
        acupointImagePart.setCreateTime(DateUtils.getNowDate());
        return acupointImagePartMapper.insertAcupointImagePart(acupointImagePart);
    }

    /**
     * 修改穴位图片-身体部位关联
     * 
     * @param acupointImagePart 穴位图片-身体部位关联
     * @return 结果
     */
    @Override
    public int updateAcupointImagePart(AcupointImagePart acupointImagePart)
    {
        return acupointImagePartMapper.updateAcupointImagePart(acupointImagePart);
    }

    /**
     * 批量删除穴位图片-身体部位关联
     * 
     * @param ids 需要删除的穴位图片-身体部位关联主键
     * @return 结果
     */
    @Override
    public int deleteAcupointImagePartByIds(Long[] ids)
    {
        return acupointImagePartMapper.deleteAcupointImagePartByIds(ids);
    }

    /**
     * 删除穴位图片-身体部位关联信息
     * 
     * @param id 穴位图片-身体部位关联主键
     * @return 结果
     */
    @Override
    public int deleteAcupointImagePartById(Long id)
    {
        return acupointImagePartMapper.deleteAcupointImagePartById(id);
    }
}
